<include file="public@header"/>
<link rel="stylesheet" href="__STATIC__/layui/css/layui.css">
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('admin/langLanguage/index')}">列表</a></li>
        <li class="active"><a>添加</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('admin/langLanguage/add')}">
        <div class="form-group">
            <label for="langId" class="col-sm-2 control-label"><span class="form-required">*</span>语言</label>
            <div class="col-md-6 col-sm-10">
                <select class="form-control" name="lang_id" id="langId">
                    <foreach name="countryData" item="lang">
                        <option value="{$lang['id']}">{$lang['name']}</option>
                    </foreach>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label for="langId" class="col-sm-2 control-label"><span class="form-required">*</span>语言</label>
            <div class="col-md-6 col-sm-10">
                <select class="form-control" name="language_id" id="language_id">
                    <foreach name="countryData" item="lang">
                        <option value="{$lang['id']}">{$lang['name']}</option>
                    </foreach>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label for="name" class="col-sm-2 control-label"><span class="form-required">*</span>名称</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" name="name" id="name" class="form-control"/>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>